lib: Fix a compiler warning introduced from earlier patch
authorColin Walters <walters@verbum.org>
Thu, 4 Aug 2016 20:35:49 +0000 (16:35 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 5 Aug 2016 07:38:09 +0000 (07:38 +0000)
I think we'd end up closing stdin...yuck.  Need to investigate
having this be fatal, but CentOS 7 `gcc-4.8.5` doesn't understand
`-Werror=int-conversion`.

Closes: #430
Approved by: giuseppe

src/libostree/ostree-repo-static-delta-compilation.c

index a6bc320695a1657f6ef4b8d7ea9e4e72ccfaf9d8..8b3880940f58e8da103a90cf11264ca673584eb0 100644 (file)
@@ -1270,7 +1270,7 @@ ostree_repo_static_delta_generate (OstreeRepo                   *self,
   g_autoptr(GVariant) detached = NULL;
   gboolean inline_parts;
   guint endianness = G_BYTE_ORDER;
-  glnx_fd_close int tmp_dfd = NULL;
+  glnx_fd_close int tmp_dfd = -1;
   builder.parts = g_ptr_array_new_with_free_func ((GDestroyNotify)ostree_static_delta_part_builder_unref);
   builder.fallback_objects = g_ptr_array_new_with_free_func ((GDestroyNotify)g_variant_unref);